package demo01;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/10/31 14:53
 */
public class Test {
    public static void main(String[] args) {
        MyThread my1 = new MyThread();
        my1.setName("线程I");

        MyThread my2 = new MyThread("线程II");

        my1.start();
        my2.start();

        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"==="+i);
        }
    }
}
